﻿using System;

namespace SCM.Common
{
    public class BusinessException : Exception
    {
        public BusinessException(string message, string requestData, ResultCode resultCode, Exception e = null) : base(message, e)
        {
            ResultCode = resultCode;
            RequestData = requestData;
        }
        /// <summary>
        /// 方法名
        /// </summary>

        public ResultCode ResultCode { get; set; }

        public string RequestData { get; set; }

        public bool IsWriteLog { get; set; } = true;
    }
}
